package software;

import java.util.Iterator;

import softdata.Pla_data;
import softdone.Pos_done;

public class Pos_plates extends Pos_done{
	private Pla_data platesdata=new Pla_data();
	private Iterator iterator;
	private int ID_Plates;

	public void Pla_Read(int id){
		/*
		 * 函数功能： 板块帖子列表
		 */
		super.Pla_Read(id);
		iterator=Postplates.iterator();
	}
	
	public void PostDelete(int id){
		/*
		 * 函数功能： 删除相关帖子和回复
		 */
		Post_Delete(id);
	}
	public void getPost(){
		/*
		 * 函数功能： 读取下一条帖子信息
		 */
		if(iterator.hasNext()){
			platesdata=(Pla_data)iterator.next();
		}
	}
	public void ReadPostList(int page){
		/*
		 * 函数功能： 管理员 读取帖子列表
		 */
		PostListRead(page);
		iterator=Postplates.iterator();
	}
	public int getNum_Pos_Plates(){
		/*
		 * 函数功能： 返回当前页帖子数
		 */
		return Num_Pos_Plates;
	}
	public int getSum_Post(){
		return Sum_Post();
	}
	public int getSumClicks_Plate(){
		return Num_Plates_Click;
	}
	public int getNum_Plates(){
		return Num_Pos_Plates;
	}
	public int getID_Post(){
		return platesdata.ID_Post;
	}
	public void setID_Post(int s){
		platesdata.ID_Post=s;
	}
	public int getID_User(){
		return platesdata.ID_User ;
	}
	public void setID_User(int s){
		platesdata.ID_User=s;
	}
	public int getID_Use_Last(){
		return platesdata.ID_Use_Last;
	}
	public void setID_Use_Last(int s){
		platesdata.ID_Use_Last=s;
	}
	public int getNum_Reply(){
		return platesdata.Num_Reply;
	}
	public void setNum_Reply(int s){
		platesdata.Num_Reply=s;
	}
	public int getNum_Clicks(){
		return platesdata.Num_Clicks;
	}
	public void setNum_Clicks(int s){
		platesdata.Num_Clicks=s;
	}
	public String getNam_User(){
		return platesdata.Nam_User ;
	}
	public void setNam_User(String s){
		platesdata.Nam_User =s;
	}
	public String getTitle(){
		return platesdata.Title ;
	}
	public void setTitle(String s){
		platesdata.Title =s;
	}
	public String getNam_Use_Last(){
		return platesdata.Nam_Use_Last ;
	}
	public void setNam_Use_Last(String s){
		platesdata.Nam_Use_Last =s;
	}
	public String getTim_Post(){
		return platesdata.Tim_Post ;
	}
	public void setTim_Post(String s){
		platesdata.Tim_Post =s;
	}
	public String getTim_Last(){
		return platesdata.Tim_Last ;
	}
	public void setTim_Last(String s){
		platesdata.Tim_Last =s;
	}
	public void setID_Plates(int s){
		ID_Plates=s;
	}
	public int getID_Plates(){
		return ID_Plates;
	}
	public String getNam_Plates(){
		return GetNam_Plates();
	}
}